package com.twu.biblioteca.representation.command;


import java.util.Scanner;

public class LoginCommand extends Command {

    public LoginCommand() {
        super();
    }

    @Override
    public String execute() {
        String resultStr;
        Scanner sc = new Scanner(System.in);
        System.out.println("please input user name");
        String userName = sc.nextLine();
        System.out.println("please input password");
        String password = sc.nextLine();

        resultStr = libService.login(userName, password);

        return resultStr;
    }

}
